<?php

namespace app\admin\controller;

use app\common\controller\Backend;

/**
 * 地图
 */
class Map extends Backend
{

    protected $noNeedLogin = [];
    protected $noNeedRight = [];
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    /**
     * 协会后台首页
     */
    public function index()
    {
        $tencentMapKey = "KRNBZ-ZMHWX-5ED4B-T7YJU-NX3HV-3DFVO";
        $appname = '公司地址';
        $latid = $this->request->param('latid', '.lat');
        $lngid = $this->request->param('lngid', '.lng');
        $addressid = $this->request->param('addressid', '.address');
        $this->assign('tencentMapKey', $tencentMapKey);
        $this->assign('appname', $appname);
        $this->assign('latid', $latid);
        $this->assign('lngid', $lngid);
        $this->assign('addressid', $addressid);
        $this->assign('version', config('site.version'));
        return $this->view->fetch();
    }

}
